﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
                    xmlns:resources="clr-namespace:WirelessAccessPoint.Resources"
                    xmlns:model="clr-namespace:WirelessAccessPoint">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Style/CellStyle.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <DataTemplate x:Key="StatusPrivateNetSharingTemplate" DataType="{x:Type model:WirelessAccessPointViewModel}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="3*" />
            </Grid.ColumnDefinitions>

            <Label Grid.Row="0"
                   Grid.Column="0"
                   Style="{StaticResource CellLabelStyle}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF101;"
                           Style="{StaticResource CellImageLabelStyle}"/>
                    <Label Content="{x:Static resources:LabelResource.StatusLabel}"
                           Style="{StaticResource CellTitleLabelStyle}"/>
                </StackPanel>
            </Label>
            <Label Grid.Row="0"
                   Grid.Column="1"
                   BorderThickness="0,0,0,1"
                   Content="{Binding ActivePrivateNetSharing.StatusString}"
                   Style="{StaticResource CellLabelStyle}" />

            <Label Grid.Row="1"
                   Grid.Column="0"
                   Style="{StaticResource CellLabelStyle}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF101;"
                           Style="{StaticResource CellImageLabelStyle}"/>
                    <Label Content="{x:Static resources:LabelResource.NameLabel}"
                           Style="{StaticResource CellTitleLabelStyle}"/>
                </StackPanel>
            </Label>
            <Label Grid.Row="1"
                   Grid.Column="1"
                   BorderThickness="0,0,0,1"
                   Content="{Binding ActivePrivateNetSharing.Name}"
                   Style="{StaticResource CellLabelStyle}" />

            <Label Grid.Row="2"
                   Grid.Column="0"
                   Style="{StaticResource CellLabelStyle}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF101;"
                           Style="{StaticResource CellImageLabelStyle}"/>
                    <Label Content="{x:Static resources:LabelResource.DeviceNameLabel}"
                           Style="{StaticResource CellTitleLabelStyle}"/>
                </StackPanel>
            </Label>
            <Label Grid.Row="2"
                   Grid.Column="1"
                   BorderThickness="0,0,0,1"
                   Content="{Binding ActivePrivateNetSharing.DeviceName}"
                   Style="{StaticResource CellLabelStyle}" />

            <Label Grid.Row="3"
                   Grid.Column="0"
                   Style="{StaticResource CellLabelStyle}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF101;"
                           Style="{StaticResource CellImageLabelStyle}"/>
                    <Label Content="{x:Static resources:LabelResource.MediaTypeLabel}"
                           Style="{StaticResource CellTitleLabelStyle}"/>
                </StackPanel>
            </Label>
            <Label Grid.Row="3"
                   Grid.Column="1"
                   BorderThickness="0,0,0,1"
                   Content="{Binding ActivePrivateNetSharing.MediaTypeString}"
                   Style="{StaticResource CellLabelStyle}" />

            <Label Grid.Row="4"
                   Grid.Column="0"
                   Style="{StaticResource CellLabelStyle}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF101;"
                           Style="{StaticResource CellImageLabelStyle}"/>
                    <Label Content="{x:Static resources:LabelResource.IPAddressLabel}"
                           Style="{StaticResource CellTitleLabelStyle}"/>
                </StackPanel>
            </Label>
            <Label Grid.Row="4"
                   Grid.Column="1"
                   BorderThickness="0,0,0,1"
                   Content="{Binding ActivePrivateNetSharing.IPAddressesString}"
                   Style="{StaticResource CellLabelStyle}" />
            
            <Label Grid.Row="5"
                   Grid.Column="0"
                   BorderThickness="0,0,1,0"
                   Style="{StaticResource CellLabelStyle}" />
            <Label Grid.Row="5"
                   Grid.Column="1"
                   BorderThickness="0,0,0,0"
                   Style="{StaticResource CellLabelStyle}" />
        </Grid>
    </DataTemplate>

</ResourceDictionary>
